package com.taomu.app.zongchouhuli.moudle.mine.activity;

import android.view.View;
import android.widget.ImageView;

import com.taomu.app.zongchouhuli.R;
import com.taomu.app.zongchouhuli.framework.BaseActivity;
import com.taomu.app.zongchouhuli.framework.BasePresenter;
import com.taomu.app.zongchouhuli.weight.LineViewText;

public class UserSafeActivity extends BaseActivity {

    private ImageView mBackIm;

    private LineViewText mPhoneTv;

    private LineViewText mTradePwdTv;

    private LineViewText mLoginPwdTv;

    @Override
    protected int getContentLayout() {
        return R.layout.activity_safe;
    }

    @Override
    protected void initView() {
        mBackIm = findViewById(R.id.safe_back_im);
        mPhoneTv = findViewById(R.id.safe_phone_lvt);
        mLoginPwdTv = findViewById(R.id.safe_login_pwd_lvt);
        mTradePwdTv = findViewById(R.id.safe_trade_pwd_lvt);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initEvent() {
        mBackIm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        mPhoneTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(UserChangedPhoneActivity.class);
            }
        });
        mTradePwdTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(UserSetTradePwdAcivity.class);
            }
        });
        mLoginPwdTv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(UserSetLoginPwdActivity.class);
            }
        });
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }
}
